<?php /* Smarty version Smarty-3.1.13, created on 2013-06-01 07:19:19
         compiled from ".\templates\chinese.tpl" */ ?>
<?php /*%%SmartyHeaderCode:20315518262bdd23a42-23190265%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '35b404c282781f39338ca464e7a65cf1a185c43a' => 
    array (
      0 => '.\\templates\\chinese.tpl',
      1 => 1368247071,
      2 => 'file',
    ),
    '325c040ac3eb2e57c3cb2db39552570ef3cca8a8' => 
    array (
      0 => '.\\templates\\main.tpl',
      1 => 1370004730,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '20315518262bdd23a42-23190265',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_518262bdf02569_44888444',
  'variables' => 
  array (
    's_activId' => 0,
    'waiterVar' => 0,
    'tableVar' => 0,
    'tablePartVar' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_518262bdf02569_44888444')) {function content_518262bdf02569_44888444($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <head>
  <title>!! Shiv IceCream !!</title>
  <script type="text/javascript" src="./js/jquery.min.js"></script>
  <script type="text/javascript" src="./js/jquery.autocomplete.js"></script>
  <link href="css/style.css" rel="stylesheet" type="text/css" />
  <link href="./css/jquery-ui.css" rel="stylesheet" type="text/css"/>
  <link href="./css/menu.css" rel="stylesheet" type="text/css" />
  <link href="./css/waiterdiv.css" rel="stylesheet" type="text/css" />
  <link href="./css/jquery.autocomplete.css" rel="stylesheet" type="text/css"/>
  <style type="text/css">
                
	  #itemTable
	  {
	    border-color:black;	
	  }
    .quntity
    {
      width:40px;
    }
    #iceCreams
    {
      font-size:15px;
      background:#FF6666;	
    }
    #ice
    {
      font-size:18px;
      background:#F8F8F8;
      color:red;	
    }
    #ice1
    {
      font-size:15px;
      background:#F8F8F8;	
    }
    .itemColor
    {
     color:black;
    }
    #waiter
    {
      font-size:20px;
    }
    #tableNo
    {
      font-size:20px;
    }
    .class
    {
      width:100px;	
    }
</style>


  <script>
     $(document).ready(function(){
//////////////////////
   	$.ajax({
	    url:'itemQtyAjax.php',
	    data:{ tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, itemId: 14, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
'},
	    dataType:'HTML',
	    type:'POST',
	      
	    success:function(msg){
       	$('#itemQty_14').val(msg);
	    }
    });
    $.ajax({
	    url:'itemQtyAjax.php',
	    data:{ tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, itemId: 15, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
'},
	    dataType:'HTML',
	    type:'POST',
	      
	    success:function(msg){
       	$('#itemQty_15').val(msg);
	    }
    });
    $.ajax({
	    url:'itemQtyAjax.php',
	    data:{ tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, itemId: 16, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
	    dataType:'HTML',
	    type:'POST',
	      
	    success:function(msg){
       	$('#itemQty_16').val(msg);
	    }
    });
    $.ajax({
	    url:'itemQtyAjax.php',
	    data:{ tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, itemId: 17, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
	    dataType:'HTML',
	    type:'POST',
	      
	    success:function(msg){
       	$('#itemQty_17').val(msg);
	    }
    });
    $.ajax({
	    url:'itemQtyAjax.php',
	    data:{ tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, itemId: 18, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
	    dataType:'HTML',
	    type:'POST',
	      
	    success:function(msg){
       	$('#itemQty_18').val(msg);
	    }
    });
    $.ajax({
	    url:'itemQtyAjax.php',
	    data:{ tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, itemId: 19, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
	    dataType:'HTML',
	    type:'POST',
	      
	    success:function(msg){
       	$('#itemQty_19').val(msg);
	    }
    });
    $.ajax({
	    url:'itemQtyAjax.php',
	    data:{ tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, itemId: 20, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
	    dataType:'HTML',
	    type:'POST',
	      
	    success:function(msg){
       	$('#itemQty_20').val(msg);
	    }
    });
//////////////////////

    $('#plus14').mousedown(function(){
      var quantity=$('#itemQty_14').val();
     	$('#itemQty_14').val(parseInt(quantity) + 1 );
     	$.ajax({
  	    url:'itemAjax.php',
  	    data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_14').val(), itemId: 14, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	    dataType:'HTML',
  	    type:'POST',
  	      
  	    success:function(msg){}
      });
    });
    
    $('#minus14').mousedown(function(){
     		var quantity=$('#itemQty_14').val();
     		if(quantity > 0)
     		{
     		$('#itemQty_14').val(parseInt(quantity) - 1 );
     	  $.ajax({
  	      url:'itemAjax.php',
  	      data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_14').val(), itemId: 14, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	      dataType:'HTML',
  	      type:'POST',
  	      
  	      success:function(msg){}
        });
      }
      });
    
     $('#plus15').mousedown(function(){
      var quantity=$('#itemQty_15').val();
     	$('#itemQty_15').val(parseInt(quantity) + 1 );
     	$.ajax({
  	    url:'itemAjax.php',
  	    data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_15').val(), itemId: 15, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	    dataType:'HTML',
  	    type:'POST',
  	      
  	    success:function(msg){}
      });
    });
    
    $('#minus15').mousedown(function(){
     		var quantity=$('#itemQty_15').val();
     		if(quantity > 0)
     		{
     		$('#itemQty_15').val(parseInt(quantity) - 1 );
     	  $.ajax({
  	      url:'itemAjax.php',
  	      data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_15').val(), itemId: 15, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	      dataType:'HTML',
  	      type:'POST',
  	      
  	      success:function(msg){}
        });
      }
      });
    
    $('#plus16').mousedown(function(){
      var quantity=$('#itemQty_16').val();
     	$('#itemQty_16').val(parseInt(quantity) + 1 );
     	$.ajax({
  	    url:'itemAjax.php',
  	    data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_16').val(), itemId: 16, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	    dataType:'HTML',
  	    type:'POST',
  	      
  	    success:function(msg){}
      });
    });
   
    $('#minus16').mousedown(function(){
     		var quantity=$('#itemQty_16').val();
     		if(quantity > 0)
     		{
     		$('#itemQty_16').val(parseInt(quantity) - 1 );
     	  $.ajax({
  	      url:'itemAjax.php',
  	      data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_16').val(), itemId: 16, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	      dataType:'HTML',
  	      type:'POST',
  	      
  	      success:function(msg){}
        });
      }
      });
   
    $('#plus17').mousedown(function(){
      var quantity=$('#itemQty_17').val();
     	$('#itemQty_17').val(parseInt(quantity) + 1 );
     	$.ajax({
  	    url:'itemAjax.php',
  	    data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_17').val(), itemId: 17, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	    dataType:'HTML',
  	    type:'POST',
  	      
  	    success:function(msg){}
      });
    });

    $('#minus17').mousedown(function(){
     		var quantity=$('#itemQty_17').val();
     		if(quantity > 0)
     		{
     		$('#itemQty_17').val(parseInt(quantity) - 1 );
     	  $.ajax({
  	      url:'itemAjax.php',
  	      data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_17').val(), itemId: 17, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	      dataType:'HTML',
  	      type:'POST',
  	      
  	      success:function(msg){}
        });
      }
      });

    $('#plus18').mousedown(function(){
      var quantity=$('#itemQty_18').val();
     	$('#itemQty_18').val(parseInt(quantity) + 1 );
     	$.ajax({
  	    url:'itemAjax.php',
  	    data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_18').val(), itemId: 18, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	    dataType:'HTML',
  	    type:'POST',
  	      
  	    success:function(msg){}
      });
    });
    $('#minus18').mousedown(function(){
     		var quantity=$('#itemQty_18').val();
     		if(quantity > 0)
     		{
     		$('#itemQty_18').val(parseInt(quantity) - 1 );
     	  $.ajax({
  	      url:'itemAjax.php',
  	      data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_18').val(), itemId: 18, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	      dataType:'HTML',
  	      type:'POST',
  	      
  	      success:function(msg){}
        });
      }
      });
     $('#plus19').mousedown(function(){
      var quantity=$('#itemQty_19').val();
     	$('#itemQty_19').val(parseInt(quantity) + 1 );
     	$.ajax({
  	    url:'itemAjax.php',
  	    data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_19').val(), itemId: 19, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	    dataType:'HTML',
  	    type:'POST',
  	      
  	    success:function(msg){}
  	    
      });
    });
    $('#minus19').mousedown(function(){
     		var quantity=$('#itemQty_19').val();
     		if(quantity > 0)
     		{
     		$('#itemQty_19').val(parseInt(quantity) - 1 );
     	  $.ajax({
  	      url:'itemAjax.php',
  	      data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_19').val(), itemId: 19, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	      dataType:'HTML',
  	      type:'POST',
  	      
  	      success:function(msg){}
        });
      }
      });
     $('#plus20').mousedown(function(){
      var quantity=$('#itemQty_20').val();
     	$('#itemQty_20').val(parseInt(quantity) + 1 );
     	$.ajax({
  	    url:'itemAjax.php',
  	    data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_20').val(), itemId: 20, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	    dataType:'HTML',
  	    type:'POST',
  	      
  	    success:function(msg){}
      });
    });
    $('#minus20').mousedown(function(){
    	var quantity = $('#itemQty_20').val();
    	if(quantity > 0)
    	{
    	  $('#itemQty_20').val(parseInt(quantity) - 1 );
        $.ajax({
  	      url:'itemAjax.php',
  	      data:{ waiterId: <?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
, tableId: <?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
, quantity: $('#itemQty_20').val(), itemId: 20, tablePart: '<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
' },
  	      dataType:'HTML',
  	      type:'POST',
  	      
  	      success:function(msg){}
        });
      }
    });
  });
  </script>

</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
    <td class="content">
    <?php if (strlen($_smarty_tpl->tpl_vars['s_activId']->value)>0){?>
      <a href="logout.php" class="link">Logout</a> |
      <a href="index.php?waiter=<?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
&table=<?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
&tablePart='<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
'	">Home</a> |
      <a href="closeTables.php"> Closed Tables </a>	|
      <a href="window8.php" >window8</a>
    <?php }else{ ?>
      <a href="index.php">Home</a> |
      <a href="window8.php" >window8</a> |
      <a href="checklogin.php">Login</a>
      
    <?php }?>
    </td>
  </tr>
  <?php if (strlen($_smarty_tpl->tpl_vars['s_activId']->value)>0){?>
  <tr align="center">
    <td class="bluebg1">
      <div class="suckertreemenu">
      <br />
        <ul id="treemenu1">
	        <li><a href="backup.php" style="width:15px;" class="link">&#2384;</a></li>
        </ul>
      <br /><br /><br />
      </div>
    </td>
  </tr>
  <?php }?>
  <tr>
  <td class="content">

  <center>
    <table>
      <tr>
      	<td valign="top">
      		<table style="float:left" id="itemTable" border="1" cellpadding="3" cellspacing="2" >
            <tr id="ice" class="ice">
              
              <td><font size="4"> Noodles <br />Rs. : 120.00</font>
     	          <br />
                <button id="plus14" class="sum">+</button>
                <input  type="text" name="1"  value="0" class="quntity" id="itemQty_14"/>
                <button id="minus14" class="sum">-</button>
              </td>
              <td><font size="4">Noodles <br />Rs. : 140.00</font>
     	          <br />
                <button id="plus15" class="sum">+</button>
                <input  type="text" name="1" class="quntity" value="0" onchange="changeQuantityFun();" id="itemQty_15"  />
                <button id="minus15" class="sum">-</button>
              </td>
              <td><font size="4">Rice<br />Rs. : 120.00</font>
     	          <br />
                <button id="plus16" class="sum">+</button>
                <input  type="text" name="1" class="quntity" value="0" id="itemQty_16" />
                <button id="minus16" class="sum">-</button>
              </td>
              <td><font size="4"> Rice <br />Rs. : 140.00</font>
     	          <br />
                <button id="plus17" class="sum">+</button>
                <input  type="text" name="1" class="quntity" value="0" id="itemQty_17"  />
                <button id="minus17" class="sum">-</button>
              </td>
            </tr>
            <tr id="ice" class="ice">
            	<td align="center"><font size="4">Gravi & Dry<br />Rs. : 120.00</font>
     	          <br />
                <button id="plus18" class="sum">+</button>
                <input  type="text" name="1" class="quntity" id="itemQty_18" value="0" />
                <button id="minus18" class="sum">-</button>
              </td>
              <td align="center"><font size="4">Gravi & Dry<br />Rs. : 180.00</font>
     	          <br />
                <button id="plus19" class="sum">+</button>
                <input  type="text" name="1" class="quntity" id="itemQty_19" value="0" />
                <button id="minus19" class="sum">-</button>
              </td>
              <td align="center"><font size="4">Trippal Schezuan<br />Rs. : 190.00</font>
     	          <br />
                <button id="plus20" class="sum">+</button>
                <input  type="text" name="1" class="quntity" id="itemQty_20" value="0" />
                <button id="minus20" class="sum">-</button>
              </td>
            </tr>
          </table>
            <table align="center" border="0">
          	<tr>
              <td>
                <iframe src="itemMenu.php?waiter=<?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
&table=<?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
&tablePart=<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
" width="400" height="400"></iframe>
              </td>
            </tr>
          </table>
      	</td>
      	<td>
      	   <table align="right" border="0">
        	   <td>
        	     <iframe src="selectedTable.php?waiterId=<?php echo $_smarty_tpl->tpl_vars['waiterVar']->value;?>
&tableId=<?php echo $_smarty_tpl->tpl_vars['tableVar']->value;?>
&tablePart=<?php echo $_smarty_tpl->tpl_vars['tablePartVar']->value;?>
" width="395" height="1000"></iframe>
        	   </td>
           </table>
      	</td>
      </tr>
    </table>

  </td>
  </tr>
  <tr>
    <td class="bluebg1">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/corner3.gif" width="6" height="7" /></td>
        <td></td>
        <td align="right"><img src="images/corner4.gif" width="6" height="7" /></td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</body><?php }} ?>